<template>
	<view class="zai-box">
		<!-- LOGO区域 -->
		<image src="../../../static/logo.png" mode='aspectFit' class="zai-logo"></image>
		<view class="zai-label">微信授权后可以更便捷使用小程序</view>
		<view class="zai-form">
			<view class="zai-input-btn">
				<input class="zai-input" placeholder-class placeholder="手机号"/>
				<view class="zai-checking">
				<button open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" class="phone_btn" >授权手机号</button>
				</view>
			</view>
			<view class="zai-input-btn">
				<input class="zai-input" placeholder-class placeholder="头像呢称"/>
				<view class="zai-checking"  >授权个人微信信息</view>
			</view>
			<input class="zai-input" placeholder-class placeholder="请输入姓名"/>
			<button class="zai-btn">提交</button>
			<navigator url="" open-type='navigateBack' hover-class="none" class="zai-label">暂不注册</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				phone:false,
				number:'13412345678',
			}
		},
		onLoad() {
	
		},
		methods: {
			getPhoneNumber:function(e){
				this.phone=true
			},
			
		}
	}
</script>

<style lang="scss" scoped>
	.mask {
		position: fixed;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		background: rgba(0, 0, 0, 0.5);
	}
	.phone_btn{
		background-color: transparent !important;
		border: none;
		color: #FFF;
		font-size: 30rpx;
	}
	button::after {
		border: none
	}
	.zai-box{
		padding: 0 50rpx;
		position: relative;
	}
	.zai-logo{
		width: 100%;
		height: 310rpx;
		margin-top: 66rpx;
	}
	.zai-title{
		position: absolute;
		top: 0;
		line-height: 360rpx;
		font-size: 68rpx;
		color: #fff;
		text-align: center;
		width: 100%;
		margin-left: -100rpx;
	}
	.zai-form{
		margin-top: 100rpx;
	}
	.zai-input{
		background: #e2f5fc;
		margin-top: 30rpx;
		border-radius: 100rpx;
		padding: 20rpx 40rpx 9rpx 40rpx;
		font-size: 36rpx;
	}
	.input-placeholder, .zai-input{
		color: #94afce;
	}
	.zai-label{
		padding: 60rpx 0;
		text-align: center;
		font-size: 30rpx;
		color: #a7b6d0;
	}
	.zai-btn{
		background: #E2E8F0;
		color: #fff;
		border: 0;
		border-radius: 100rpx;
		font-size: 36rpx;
		margin-top: 60rpx;
	}
	.zai-btn:after{
		border: 0;
	}
	
	/*验证码输入框*/
	.zai-input-btn{
		position: relative;
	}
	.zai-input-btn .zai-input{
		padding-right: 260rpx;
	}
	.zai-checking{
		position: absolute;
		right: 0;
		top: 0;
		// background: #2A4365;
		background: #00C049;
		color: #fff;
		border: 0;
		border-radius: 110rpx;
		font-size: 30rpx;
		margin-left: auto;
		margin-right: auto;
		padding-left: 28rpx;
		padding-right: 28rpx;
		box-sizing: border-box;
		text-align: center;
		text-decoration: none;
		line-height: 2.55555556;
		-webkit-tap-highlight-color: transparent;
		overflow: hidden;
		padding-top: 2rpx;
		padding-bottom: 2rpx;
	}
	.zai-checking.zai-time{
		background: #a7b6d0;
	}
	
	/*按钮点击效果*/
	.zai-btn.button-hover{
		transform: translate(1rpx, 1rpx);
	}
</style>
